package com.usian.service.impl;

import com.usian.pojo.User;
import com.usian.service.UserService;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Override
    public User findById(Integer id) {
        return new User(id,"张三",18);
    }

    @Override
    public User findByName(String name) {
        return new User(1,name,19);
    }

    @Override
    public User findByUser(User user) {
        return new User(1,"李四",user.getAge());
    }
}
